// JavaScript Document
$("#BLOCK_C4970").hide();
//alert($("#C4970").val());
switch($("#C4970").val()){
  
  case "00": //En preparacion
    //$("#form1 *").removeAttr("disabled");
    //do nothing; 
   //alert("do nothing");
  break;

  default: 
	//window.location="../RenderView/printvista.php?idvista=1138&idap=221&id=<?= $_REQUEST['id'];?>"; 
	window.location="../frontcustom/221/proyecto.usuario.print.php?id=<?=$_REQUEST['id'];?>"; 
	$("#form1 *").attr("disabled",true);
  break;
}
$("#C4836").change(function(){
	switch($("#C4836").val()){
		case "1": // modalidad 1
		$("#form1 input[name='redir']").val($("#form1 input[name='redir']").val().replace("1134","1133"));
		break;
		
		case "2": // Modalidad 2
		$("#form1 input[name='redir']").val($("#form1 input[name='redir']").val().replace("1133","1134"));
		break;
		}
 });
$("#C4836").trigger("change");
      